const mongoose = require("mongoose");
const Schema = mongoose.Schema;

// 类型约束必须与数据中的字段对应，除了_id是数据库自动生成的
const MenuType = {
  menuName: String,
  menuId: String,
  menuPath: String,
};

const MenuModel = mongoose.model("menu", new Schema(MenuType));
// menu 将会对应 menus 集合,
module.exports = MenuModel;
